-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Convert Disk APIs implementation to syscalls #201
[WIP] Convert Disk APIs implementation to syscalls #201
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: pradeep-hegde The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @pradeep-hegde. Thanks for your PR. I'm waiting for a kubernetes-csi member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign @jingxu97 |
/assign @mauriciopoppe |
/assign @ddebroy |
/ok-to-test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see a few TODOs in the PR, is it still a WIP?
Yes, it's WIP. Without those fixes, APIs won't be ready with the new implementation. I am unsure how to fix those and still looking for a solution to it. So raised PR to get initial reviews and suggestions for those TODOs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not familiar with Windows syscalls
- how did you get the code? did you translate it from an existing codebase in a different language?
- none of these functions are used in the API, how do we make sure that they're working?
I referred to a few existing DiskAPIs in CSI proxy Line 180 in 713bbca
There is Windows Doc for all supported Disk APIs through DeviceIoControl function with ioControlCodes https://docs.microsoft.com/en-us/windows/win32/fileio/disk-management-control-codes @ddebroy helped to get some of the windows docs for ioControlCodes
Yes, I am trying to have similar functions of Disk APIs with syscall implementation. Before raising PR, I tried to unit test each syscall in Windows Server 2019 to validate the functions |
Agreed on using a new impl with the existing APIs, creating new APIs is painful and I don't think it's worth it at this point, you could change the impl call
We have a few integration tests for disks that run in pull-kubernetes-csi-csi-proxy-integration, when the job runs after the impl is changed please look at the output, while we tried to have a good coverage I'm not sure about an exact number, please look at |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
d24254f Merge pull request kubernetes-csi#202 from xing-yang/kind_0.14.0 0faa3fc Update to Kind v0.14.0 images ef4e1b2 Merge pull request kubernetes-csi#201 from xing-yang/add_1.24_image 4ddce25 Add 1.24 Kind image git-subtree-dir: release-tools git-subtree-split: d24254f6aa780bb6ba36a946973ee01df5633f6b
What type of PR is this?
/kind feature
What this PR does / why we need it:
Attempt to convert Disk APIs implementation to syscall alternatives
Which issue(s) this PR fixes:
Special notes for your reviewer:
Its WIP change to attempt to convert PowerShell commands to syscalls for Disk APIs. Few APIs of syscall are not running as expected. Reviews and suggestions are welcomed
Does this PR introduce a user-facing change?: